<extend name="public:base"/>

<block name="title">
    <meta name="keywords" content="冬虫夏草专卖网"/>
    <meta name="description" content="冬虫夏草专卖网"/>
    <title>冬虫夏草专卖网</title>
</block>

<block name="main">

    <div class="banner_box">
        <!--<div class="div_festivalBG"></div>-->
        <div class="banner">
            <a href="javascript:void(0);" class="unSlider-arrow prev"><i class="iconFont">&#xe67b;</i></a>
            <a href="javascript:void(0);" class="unSlider-arrow next"><i class="iconFont">&#xe60e;</i></a>
            <ul>
                <volist name="ads" id="va">
                    <li><a href="{$va.url|default='/'}" style=" display:block;background:url('{$va.cover_id|get_cover="path"}') top center; height:100%;" title="{$va.title}"></a></li>
                </volist>
            </ul>
        </div>
        <!--首页fixed-->
        <div class="homeRegister">
            <div class="w1200 mc">
                <div class="maxBox">
                    <div class="title"><span>200000+</span>投资达人已加入冬虫夏草</div>
                    <div class="number">8.5<span>%</span>-13.5<span>%</span></div>
                    <div class="txt l24 a666 tc">收益率</div>
                    <if condition="$uid gt 0">
                        <a href="{:url('user/index/index')}" class="btn_reg viewAccount mt30">查看我的账户</a>
                        <else/>
                        <a href="{:url('user/passport/register')}" class="btn_reg">注册账户</a>
                        <p class="aLogin">已有账号，<a href="javascript:void(0);" data-href="{:url('user/sign/login')}" onclick="to_login(this)">立即登录</a></p>
                    </if>
                </div>
            </div>
        </div>
    </div>


    <!--公告-->
    <div class="newNotice">
        <div class="w1200 cl mc">
            <i class="iconFont fl">&#xe608;</i>
            <div class="scrollAnnouncement" id="announcement">
                <div class="box">
                    <ul class="list">

                        <volist name="notice" id="v">
                            <li>
                                <a href="{:url('index/article/detail', ['id'=>$v['id']],true,true)}">{$v.title}（{$v.create_time|strtotime|date="Y年m月d日",###}）</a>
                                <if condition="$i eq 1"><img src="__IMG__/new.gif" class="ml5" /></if>
                            </li>
                        </volist>
                    </ul>
                </div>
            </div>
            <a href="{:url('index/article/lists', ['cid'=>8],true,true)}" class="more fr">更多公告</a>
        </div>
    </div>


    <!--产品-->
    <div class="index_list ">
        <div class="w1200 newbie ">

            <div class="pic fl">
                <h2>冬虫夏草专卖网</h2>
                <a href="{:url('index/invest/index')}">精选项目</a>
            </div>

            <div class="right">
                <ul>

                    <volist name="borrows" id="v" key="i">
                    <li <if condition="$i eq 3">style="border-right: 0;"</if>><a href="{:url('index/invest/detail', ['id'=>$v.id])}">
                        <div class="up">
                            <p style="font-size: 25px;">{$v.borrow_name}</p>

                            <div class="year"><span>{$v.borrow_interest_rate}</span><b>%
                                 </b></div>
                            <div class="date"><span class="fl"><b>{$v.borrow_duration}</b>
                                天期限
                    </span><span class="fr"><b>{$v.borrow_min}</b>元起投</span></div>
                        </div>
                        <div class="down">
                            <div class="progress">
                                <div class="bar fl"><div class="in" style="width:72.47%"></div></div>
                                <div class="font fr">72.47%</div>
                            </div>
                            <div class="overplus">还款方式：一次性还本付息</div>
                            <div class="btn">立即加入</div>
                        </div></a>
                    </li>
                    </volist>

                </ul>

            </div>

        </div>
    </div>

    <div class="index_list ">
        <div class="w1200 newbie ">

            <div class="pic fl">
                <h2>冬虫夏草专卖网</h2>
                <a href="{:url('index/invest/index')}">精选项目</a>
            </div>

            <div class="right">
                <ul>

                    <volist name="borrows" id="v" key="i">
                        <li <if condition="$i eq 3">style="border-right: 0;"</if>><a href="{:url('index/invest/detail', ['id'=>$v.id])}">
                        <div class="up">
                            <p style="font-size: 25px;">{$v.borrow_name}</p>

                            <div class="year"><span>{$v.borrow_interest_rate}</span><b>%
                            </b></div>
                            <div class="date"><span class="fl"><b>{$v.borrow_duration}</b>
                                天期限
                    </span><span class="fr"><b>{$v.borrow_min}</b>元起投</span></div>
                        </div>
                        <div class="down">
                            <div class="progress">
                                <div class="bar fl"><div class="in" style="width:72.47%"></div></div>
                                <div class="font fr">72.47%</div>
                            </div>
                            <div class="overplus">还款方式：一次性还本付息</div>
                            <div class="btn">立即加入</div>
                        </div></a>
                        </li>
                    </volist>

                </ul>

            </div>

        </div>
    </div>
    <!--产品end-->
    <div class="mt30"></div>
</block>

<block name="js">
    <script type="text/javascript" src="__JS__/unslider/unslider.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery.SuperSlide.2.1.js"></script>
    <script type="text/javascript" src="__JS__/alertBox.js"></script>
    <script type="text/javascript" src="__JS__/frontpage.js"></script>

    <script type="text/javascript">
        amiProcess();
        $(function () {

            // 首页幻灯片 JS
            var unSlider = $('.banner').unslider({
                speed:300,delay:5000,fluid: true,dots: true
            });

            $('.unSlider-arrow').click(function() {
                var fn = this.className.split(' ')[1];
                unSlider.data('unslider')[fn]();
            });

            // 公告滚动
            $("#announcement").slide({mainCell:".box ul.list",autoPage:true,effect:"top",autoPlay:true,interTime:4000});

        });
    </script>

</block>